//
//  DiscoverCell.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/7/17.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "DiscoverCell.h"

@interface DiscoverCell()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomheight;
@property (weak, nonatomic) IBOutlet UIImageView *disImg;
@property (weak, nonatomic) IBOutlet UILabel *disLabel;
@property (weak, nonatomic) IBOutlet UILabel *disDetail;

@end

@implementation DiscoverCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)disDataSource:(NSDictionary *)dict indexPath:(NSIndexPath *) indexPath{
    
    [self.disImg setImage:[UIImage imageNamed:dict[@"img"]]];
    [self.disLabel setText:dict[@"title"]];
    
    if (indexPath.section == 0) {
        [self.disDetail setText:@"各路大神，一搜便知道"];
    }
    if (indexPath.section == 1) {
        [self.disDetail setText:@"联赛信息，及时掌控到"];
    }
    if (indexPath.section == 2) {
        [self.disDetail setText:@"查看趋势，图表浏览更清晰"];
    }
    if (indexPath.section == 3) {
        if (indexPath.row == 0) {
            [self.disDetail setText:@"及时比分，随时了解比赛实况"];
        }
        else if (indexPath.row == 1){
            [self.disDetail setText:@"比分直播，第一手赛况全掌控"];
        }
    }
    if (indexPath.section == 4) {
        [self.disDetail setText:@"附近情况，一览全了解"];
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
